]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Pass device to startDrag()
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 13 Dec 2019 17:14:51 +0000 (18:14 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 13 Dec 2019 17:53:41 +0000 (17:53 +0000)
This is necessary to make DnD operations work from tablet devices on
wayland, as it's not the same onscreen pointer sprite than mice. Fixes
window DnD in the overview on tablet devices, no longer having them stick
to the wrong pointer.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/897

js/ui/workspace.js

index 1e9bedc280e6fe2c3215fc4210906135ff696e46..d470f7f402839c15c0b09349c23d65175cb2aca3 100644 (file)
@@ -431,7 +431,7 @@ var WindowClone = GObject.registerClass({
                     return;
                 let [x, y] = action.get_coords();
                 action.release();
-                this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence);
+                this._draggable.startDrag(x, y, global.get_current_time(), this._dragTouchSequence, event.get_device());
             });
         } else {
             this.emit('show-chrome');